<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
        <meta http-equiv="X-UA-Compatible" content="ie=edge">
        <title>拍照</title>
        <script>
            window.onload = function(){
                document.documentElement.style.fontSize = document.documentElement.clientWidth/6.4+'px';
                
            }
        </script>
    </head>
    <body>
        <p style="font-size:0.28rem;">拍照1</p>
        <input type="file" accept="image/*" capture="camera"  />
    </body>
</html>